from api.order import ConfirmOrder
from toosl.read_file import read_yaml


class TestOrder:
    def test_confirm_order(self):
        payload = {
            "cartId": read_yaml('cartId.yaml'),
            "new": 0,
            "addressId": 0,
            "shipping_type": 1
        }
        api = ConfirmOrder(json=payload)
        print(api.response.text)